{extends="layout"}
{block="title"}User Pages{/block}
{block="content_title"}<?php echo $title ?>{/block}
{block="content"}  
    <?php foreach ($user as $key => $user_item): ?>

    <div id="main">
        <?php // foreach($user_item as $key => $val){
//            echo $key.'<br>';
//        }?>
        <?php echo $user_item['userid'] ?>
    <p><a href="<?php echo $user_item['id'] ?>">View</a></p>
    </div>

<?php endforeach ?>
{/block}